package designPatterns.P02_工厂模式_Factory.P01_简单工厂.P01_PizzaStore.第1版_无工厂.pizza;

public abstract class Pizza {
    protected String name;

    public abstract void prepare();

    public void bake() {
        System.out.println(name + " baking;");
    }

    public void cut() {
        System.out.println(name + " cutting;");
    }

    public void box() {
        System.out.println(name+" boxing;");
    }

    public void setName(String name) {
        this.name = name;
    }
}
